<!DOCTYPE html>
<html>
	<head>
		<meta charset="utf-8">
		<title></title>
	</head>
	<style>
		.box {
			overflow-y: scroll;
			height: 400px;
			border: 1px solid red;
			width: 800px;
			margin: 50px auto;
		}

		.sticky {
			position: sticky;
			left: 0;
			top: 0;
			z-index: 11;
			height: 50px;
			background-color: pink;
			line-height: 50px;
			text-align: center;
		}
			
		.a{
			height: 50px;
			width: 100%;
			border-bottom: 1px solid indianred;
		}
	</style>
	<body>
		<div class="box">
			<div class="sticky">苏苏就是小苏苏</div>
			<div class="a">1222fix</div>
			<div class="a">1</div>
			<div class="a">1</div>
			<div class="a">1</div>
			<div class="a">1</div>
			<div class="a">1</div>
			<div class="a">1</div>
			<div class="a">1</div>
			<div class="a">1</div>
			<div class="a">1</div>
			<div class="a">1</div>
			<div class="a">1</div>
		</div>
	</body>
</html>
